@use 'styles/helpers' as *;

.container {
  position: relative;
  padding: 10px;
  min-height: 500px;
  height: calc(100vh - $HEADER_HEIGHT);

  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: 'timer sounds' 'tasks sounds';
  transition: all 0.5s ease-out;

  &.timer_tasks{
    //transition: all 0.5s ease-out;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 0fr;
    grid-template-areas: 'timer tasks';
  }

  &.timer_sounds {
    //transition: all 0.5s ease-out;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 0fr;
    grid-template-areas: 'timer sounds';
  }

  &.tasks_sounds {
    //transition: all 0.5s ease-out;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 0fr;
    grid-template-areas: 'tasks sounds';
  }

  &.one {
    display: flex;
  }

  &.empty {
    display: flex;
  }

  @include t {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    justify-items: stretch;
    // justify-items: stretch;
    // align-items: stretch;
  }

}

.timerWrap, .soundsWrap, .tasksWrap {
  margin: 10px;
  transition: all 0.4s;
  &.hidden {
    display: none;
  }
  &.one {
    flex-grow: 1;
  }
  @include t {
    margin: 5px;
  }
}

.timerWrap {
  grid-area: timer;
  min-height: 50%;
  min-height: 300px;

  @include t {
    min-height: fit-content;
  }
}

.soundsWrap {
  grid-area: sounds;
  min-height: 300px;

  @include t {
    min-height: fit-content;
  }
}

.tasksWrap {
  grid-area: tasks;
  min-height: 300px;

  @include t {
    min-height: fit-content;
  }
}

.mobWrap {
  z-index: 10;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(#000000, 0.3);
  backdrop-filter: blur(5px);
  padding-top: 16px;
}

.layoutModuleWrap {
  height: 100%;
}

.emptyWrap {
  @include descr2;
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: $color-txt-secondary;

  svg {
    fill: $color-txt-secondary;
    width: 100%;
    height: 300px;
    opacity: 0.5;
  }
}